<!DOCTYPE html>
<html>
	<head>
 
<meta charset="UTF-8">
<meta name="copyright" content="www.apicloud.com" />
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<title>舆情工作平台登陆</title>
<link rel="stylesheet" type="text/css" href="../css/login.css" />
		 <style type="text/css">
       body,html{ width:100%;height:50px;background:#fff; margin:0px; padding:0px;}
        .back{
          border-top: 1px solid #cdcdcd;
          display:-webkit-flex; 
          display:-webkit-box; 
          display:-moz-box; 
          display:flex; 
          display:box; 
          width:100%;
          float:right;
          height:50px;
        }
         
        .back>*{
          display:block;
          -webkit-flex:1;        
          flex:1;
        }
        .back>span>img {
          vertical-align: middle;     
        }
       /*.back>span{ display:block; float:left; width:16.5%; padding-left:20px; height:50px; padding-top:5px;  background:url(../image/btn/cz1.png)  no-repeat center ; background-size:auto 90%;}*/
    </style> 
	</head>
	<body>
       <div id="back" class="back">
           <span id="goback" tapmode="buyhover" onclick="go_back()">
                <img src="../image/btn/left_back.png" height="46">
           </span>
           <span id="kong">
                <img src="../image/btn/kong2.png" height="46">
           </span>
       <span id="cz" tapmode="buyhover" onclick="check(1)"></span>
       <span id="wx" tapmode="buyhover" onclick="check(2)"></span>
       <span id="sc" tapmode="buyhover" onclick="check(3)"></span>
       <span id="fx" tapmode="buyhover" onclick="check(4)"></span>
       </div>
<input id="access_token" type="hidden" value=""/>
<input id="admin_id" type="hidden" value=""/>
<!-------------------分享信息---------------------------->
<input id="url" type="hidden" value=""/>
<input id="title" type="hidden" value=""/>
<input id="abstract_content" type="hidden" value=""/>
<!-------------------分享信息---------------------------->
<!-------------------信息状态---------------------------->
<input id="message_id" type="hidden" value=""/>
<input id="is_collect" type="hidden" value=""/>
<input id="is_pass" type="hidden" value=""/>
<input id="pass_status" type="hidden" value=""/>
<input id="deal_status" type="hidden" value=""/>
<input id="forwarding_status" type="hidden" value="0"/>
<!-------------------信息状态---------------------------->
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/api.data.js"></script>
<script type="text/javascript" src="../script/jquery.md5.js"></script>
<script type="text/javascript" src="../script/jquery.min.js"></script>
 
	<script type="text/javascript">
	    apiready = function(){
		     //在页面制定位置输出接口所需的access_token和admin_id
             get_sign();                                        
             //获取相关参数url或者文章ID及接口名称		 
		     var message_id = api.pageParam.message_id;
		     var status = api.pageParam.status; 
		     if(status != "status"){
		          setTimeout(function(){bottom_memu(message_id);},100);
		     } 
		     
		     if (api.systemType =="ios"){
                  document.getElementById("kong").innerHTML = '<img src="../image/btn/kong.png" height="46">';
             }
		                            
         }
         
         function check(status){
            //获取文章的相关信息
             var url = $("#url").val();
             var title = $("#title").val();
             var abstract_content = $("#abstract_content").val();
             var message_id = $("#message_id").val(); //文章id
             var is_pass = $("#is_pass").val(); //0可以申请无效，1已申请无效          
             var pass_status = $("#pass_status").val(); //0审核中，1通过，2不通过
             var deal_status = $("#deal_status").val(); //当前处置状态，0未处置，1处置中，2处置完毕
            	var forwarding_status = $("#forwarding_status").val(); //0是没有转办    1是已转办 ，2是已处理完
    
            //执行菜单操作
             if(status == 1 || status == 2 || status == 4 ){ 
                 api.openFrame({
	                 name: 'operationFrame',
	                 url: './operationFrame.html',
	                 rect: {
		                 x:0,
		                 y:0,
		                 w:"auto",
		                 h:"auto"
	                 },
	                 pageParam:{status:status,message_id:message_id,is_pass:is_pass,pass_status:pass_status,
	                 deal_status:deal_status,url:url,title:title,abstract_content:abstract_content,
	                 forwarding_status:forwarding_status},
	                 vScrollBarEnabled:true,          
                     hScrollBarEnabled:false,  
                     scaleEnabled:true, 
                     bounces: false,    
                 });
             }else if(status == 3){
                 collect(message_id);               
             }
         }
         
        function refresh(messageid){
              show(messageid,"btn");
        }
         
	    function go_back(){	         
	        api.closeWin({name:'detailWin'});
	    }
	 
	</script>
</html>
